package ${packageName};

import android.os.Bundle;
import android.support.design.widget.TabLayout;

import ${applicationPackage}.R;
import ${applicationPackage}.BR;
import ${applicationPackage}.databinding.${underscoreToCamelCase(layoutName)}Binding;
import ${packageName}.viewModel.${viewModelName};

import me.goldze.mvvmhabit.base.BaseActivity;

/**
 * ${activityLabel}
 */
public class ${activityClass} extends BaseActivity<${underscoreToCamelCase(layoutName)}Binding, ${viewModelName}>{
 @Override
    public int initContentView(Bundle savedInstanceState) {
        return R.layout.${layoutName};
    }

    @Override
    public int initVariableId() {
        return BR.viewModel;
    }


    @Override
    public void initData() {
        // 使用 TabLayout 和 ViewPager 相关联
        binding.tabs.setupWithViewPager(binding.viewPager);
        binding.viewPager.addOnPageChangeListener(new TabLayout.TabLayoutOnPageChangeListener(binding.tabs));
    }

    @Override
    public void initViewObservable() {

    }
}
